#!/usr/bin/gnuplot

set grid
set term png size 640, 400
set xlabel "Tam [kb]"

set ylabel 'Tiempo [s]'
set output 'bubblesort.png'
plot 'data' using 1:2 with lines notitle
set output 'shellsortc.png'
plot 'data' using 1:3 with lines notitle
set output 'shellsorts.png'
plot 'data' using 1:4 with lines notitle

set ylabel 'Speedup'
set output 'bs.png'
plot 'data' using 1:($3==0 ? 0 : $2/$3) with lines notitle
set output 'ss.png'
plot 'data' using 1:($4==0 ? 0 : $3/$4) with lines notitle

